package com.yuyou.fn.tms.vo;

import com.yuyou.fn.platform.entity.District;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * Created by lzh on 2019/1/24.
 */
public class TmsDistrict {

    @ApiModelProperty("地区id")
    private Long areaId ;//地区id

    @ApiModelProperty("地区名称")
    private String areaName ;//地区名称

    @ApiModelProperty("所属省份ID")
    private Long proId ;//所属省份ID

    @ApiModelProperty("所属省份")
    private String proName ;//所属省份

    @ApiModelProperty("城市id")
    private Long cityId ;//城市id

    @ApiModelProperty("城市名称")
    private String cityName ;//城市名称

    @ApiModelProperty("创建时间")
    private Date createTime ;//创建时间

    @ApiModelProperty("最后修改时间")
    private Date modifyTime ;//最后修改时间

    @ApiModelProperty("状态(0正常,1停用)")
    private Integer status ;//状态(0正常,1停用)

    @ApiModelProperty("是否删除(0正常，1删除)")
    private Integer isDelete ;//是否删除(0正常，1删除)

    public TmsDistrict(District district){
        this.setAreaId(district.getDistrictId());//地区id
        this.setAreaName(district.getDistrictName());//地区名称
        this.setProId(district.getProvinceId());//所属省份ID
        this.setProName(district.getProvinceName());//所属省份
        this.setCityId(district.getCityId());//城市id
        this.setCityName(district.getCityName());//城市名称
        this.setCreateTime(district.getCreateTime());//创建时间
        this.setModifyTime(district.getUpdateTime());//最后修改时间
        this.setStatus(district.getStatus());//状态(0正常,1停用)
        this.setIsDelete(0);//是否删除(0正常，1删除)
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
}
